package com.onec.service.api.enums.error;

/**
 * payment 服务状态设计
 *
 * @author ONEC
 */
public enum RouteErrorEnum {

    /**
     * 成功
     */
    SUCCESS(10000, "成功"),
    FAILED(20000, "失败"),

    MERCHANT_PRODUCT_AMOUNT_LIMIT(7001, "超过商户业务单笔交易金额限制:"),
    MERCHANT_DAY_AMOUNT_ERROR(7002, "超过商户日交易限额:"),
    MERCHANT_MONTH_AMOUNT_LIMIT(7003, "超过商户月交易限额:"),
    MERCHANT_DAY_COUNT_LIMIT(7004, "超过商户日成功笔数限制:"),
    MERCHANT_MONTH_COUNT_LIMIT(7005, "超过商户月成功笔数限制:"),
    MERCHANT_CARD_BLOCK(7006, "该卡处于黑名单中:"),
    MERCHANT_ID_CARD_BLOCK(7007, "该身份信息处于黑名单中:"),
    MERCHANT_PHONE_BLOCK(7008, "该手机号处于黑名单中:"),

    SENSITIVE_MERCHANT(3006, "商户名称包含敏感信息"),
    MERCHANT_TRADE_RULE_DOING(7009, "产品规则配置中，稍后重试:"),
    MERCHANT_TRADE_CHANNEl_DOING(7010, "产品通道配置中，稍后重试:"),
    MERCHANT_NOT_NEED_REDISGER(7010, "暂无可报备通道！"),

    REALIZE_SERVER_ERROR(7062, "接口实现中，尽情期待！");

    private Integer code;

    private String message;

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    RouteErrorEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }
}
